<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .trans {
            width: 100px;
            height: 30px;
            margin: 20px;
            background-color: greenyellow;
            font-size: 14px;
            color: white;
            transition: all 3s;
        }
        
        .trans:hover {
            font-size: 16px;
            background-color: green;
            transform: rotate(1080deg) scale(1.5, 1.5)
        }
    </style>
</head>

<body>
    <div class="trans">CSS3 过渡</div>
</body>

</html>